package com.eduhzy.ttw.commonsdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author xubo
 * @date 2018/8/1 8:58
 */
public class CourseCommentData implements Parcelable {

    /**
     * against : 0
     * content : 安卓测试
     * createDate : 2018-08-28
     * id : 93
     * parentId : 0
     * realName : 李正
     * resourceId : 900
     * star : 5
     * support : 0
     * title : 可能性课堂教学的探讨
     * totalNum : 4
     * userId : 340273
     * userName : 13907486176
     */

    private int against;
    private String content;
    private String createDate;
    private int id;
    private int parentId;
    private String realName;
    private int resourceId;
    private double star;
    private int support;
    private String title;
    private int totalNum;
    private int userId;
    private String userName;

    public int getAgainst() {
        return against;
    }

    public void setAgainst(int against) {
        this.against = against;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public int getResourceId() {
        return resourceId;
    }

    public void setResourceId(int resourceId) {
        this.resourceId = resourceId;
    }

    public double getStar() {
        return star;
    }

    public void setStar(double star) {
        this.star = star;
    }

    public int getSupport() {
        return support;
    }

    public void setSupport(int support) {
        this.support = support;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(int totalNum) {
        this.totalNum = totalNum;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public CourseCommentData() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.against);
        dest.writeString(this.content);
        dest.writeString(this.createDate);
        dest.writeInt(this.id);
        dest.writeInt(this.parentId);
        dest.writeString(this.realName);
        dest.writeInt(this.resourceId);
        dest.writeDouble(this.star);
        dest.writeInt(this.support);
        dest.writeString(this.title);
        dest.writeInt(this.totalNum);
        dest.writeInt(this.userId);
        dest.writeString(this.userName);
    }

    protected CourseCommentData(Parcel in) {
        this.against = in.readInt();
        this.content = in.readString();
        this.createDate = in.readString();
        this.id = in.readInt();
        this.parentId = in.readInt();
        this.realName = in.readString();
        this.resourceId = in.readInt();
        this.star = in.readDouble();
        this.support = in.readInt();
        this.title = in.readString();
        this.totalNum = in.readInt();
        this.userId = in.readInt();
        this.userName = in.readString();
    }

    public static final Creator<CourseCommentData> CREATOR = new Creator<CourseCommentData>() {
        @Override
        public CourseCommentData createFromParcel(Parcel source) {
            return new CourseCommentData(source);
        }

        @Override
        public CourseCommentData[] newArray(int size) {
            return new CourseCommentData[size];
        }
    };
}
